package com.ruoyi.safety.service.impl;


import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; //添加
import com.ruoyi.safety.domain.SafetyPointCount;
import com.ruoyi.safety.mapper.SafetyPointCountMapper;
import com.ruoyi.safety.service.ISafetyPointCountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 测点统计信息数据Service业务层处理
 *
 * @author ruoyi
 * @date 2024-11-01
 */
@Service
public class SafetyPointCountServiceImpl extends ServiceImpl<SafetyPointCountMapper, SafetyPointCount> implements ISafetyPointCountService //修改
{
    @Autowired
    private SafetyPointCountMapper safetyPointCountMapper;

    /**
     * 查询测点统计信息数据
     *
     * @param pointCode 测点统计信息数据主键
     * @return 测点统计信息数据
     */
    @Override
    public SafetyPointCount selectSafetyPointCountByPointCode(String pointCode)
    {
        return safetyPointCountMapper.selectSafetyPointCountByPointCode(pointCode);
    }

    /**
     * 查询测点统计信息数据列表
     *
     * @param safetyPointCount 测点统计信息数据
     * @return 测点统计信息数据
     */
    @Override
    public List<SafetyPointCount> selectSafetyPointCountList(SafetyPointCount safetyPointCount)
    {
        return safetyPointCountMapper.selectSafetyPointCountList(safetyPointCount);
    }

    /**
     * 新增测点统计信息数据
     *
     * @param safetyPointCount 测点统计信息数据
     * @return 结果
     */
    @Override
    public int insertSafetyPointCount(SafetyPointCount safetyPointCount)
    {
        return safetyPointCountMapper.insertSafetyPointCount(safetyPointCount);
    }

    /**
     * 修改测点统计信息数据
     *
     * @param safetyPointCount 测点统计信息数据
     * @return 结果
     */
    @Override
    public int updateSafetyPointCount(SafetyPointCount safetyPointCount)
    {
        return safetyPointCountMapper.updateSafetyPointCount(safetyPointCount);
    }

    /**
     * 批量删除测点统计信息数据
     *
     * @param pointCodes 需要删除的测点统计信息数据主键
     * @return 结果
     */
    @Override
    public int deleteSafetyPointCountByPointCodes(String[] pointCodes)
    {
        return safetyPointCountMapper.deleteSafetyPointCountByPointCodes(pointCodes);
    }

    /**
     * 删除测点统计信息数据信息
     *
     * @param pointCode 测点统计信息数据主键
     * @return 结果
     */
    @Override
    public int deleteSafetyPointCountByPointCode(String pointCode)
    {
        return safetyPointCountMapper.deleteSafetyPointCountByPointCode(pointCode);
    }
}
